python read file without newline

52

python read file without newline -

# converts read file into a list without newlines
temp = file.read().splitlines()

Comments

Submit
0 Comments